<template>
	<view>
		<!-- 顶部导航 -->
		<u-navbar :background="background">
			<view class="ft_16 fw-b">
				核销记录
			</view>
		</u-navbar>
		<view class="content">
			<!-- <view class="con_1">
				<u-search placeholder="搜索关键词或时间" v-model="keyword" bg-color="#ffffff" @custom="con_search" height="80"></u-search>
			</view> -->
			<view class="con_2">
				<view class="con_2_1" v-for="(item,index) in kxList" :key="index" :style="kxList.length==index+1?'border:none':''">
					<view class="p_bottom_10">
						<text class="c-999">订单号：</text>
						{{item.order_no}}
					</view>
					<view class="p_bottom_10">
						<text class="c-999">核销金额：</text>
						{{item.pay_price}}
					</view>
					<view>
						<text class="c-999">核销时间：</text>
						{{item.creatretime}}
					</view>
				</view>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				background:{backgroundColor: '#ffffff',}, //导航栏背景
				keyword:"",//搜索关键字
				kxList:[], //核销列表
				
			}
		},
		onLoad() {
			this.getJilu() //核销记录
		},
		methods: {
			getJilu(){ //核销记录
				this.$myRequest('order/write_offList',{})
				.then(res=>{
					console.log(res.data);
					// this.$all.toast(res.data.msg)
					if(res.data.code==1){
						this.kxList=res.data.data.info
					}
				})
			},
			con_search(e){ //搜索
				console.log(e);
			},
			
		}
	}
</script>

<style lang="scss">
page{
	background-color: #fafafa;
}
.content{
	padding-top: 10px;
	.con_1{
		padding: 15px;
	}
	.con_2{
		background-color: #FFFFFF;
		.con_2_1{
			padding: 20px 15px;border-bottom: 1px solid #eeeeee;
		}
	}
}

</style>
